
interface AnimalTrain{
    public abstract void jump();
}
//抽象类实现接口
abstract class D implements AnimalTrain{

}
//具体类实现接口
class Cats implements AnimalTrain{
    public void jump(){
        System.out.println("猫可以跳高了");

        }
        }

public class InterfaceDemo {
    public static void main(String[] args) {
    AnimalTrain at = new Cats();
    at.jump();
    }
}
